package com.wg.web_app.domin;

import java.util.List;

import com.wg.web_app.domin.response.PhoneNumber;
import com.wg.web_app.domin.response.User;

public class UserBuilder {

	private int id;
	private String userName;
	private String photoUrl;
	private List<PhoneNumber> numbers;
	
	public User build() {
		User user = new User();
		user.setId(id);
		user.setUserName(userName);
		user.setNumbers(numbers);
		user.setPhotoUrl(photoUrl);
		return user;
	}
	
	public UserBuilder id(int id){
		this.id = id;
		return this;
	}
	public UserBuilder userName(String userName){
		this.userName = userName;
		return this;
	}

	public UserBuilder numbers(List<PhoneNumber> numbers) {
		this.numbers = numbers;
		return this;
	}
	
	public UserBuilder photo(String photoUrl) {
		this.photoUrl = photoUrl;
		return this;
	}
	
}
